package cn.edu.javaweb.service;

import java.util.List;

import cn.edu.javaweb.javabean.UserForum;
import cn.edu.javaweb.utils.DBUtil;

public class UserForumService {
	public List<UserForum> getForums(){
		DBUtil db;
        db = new DBUtil(); 
        List forumlist = db.getList("select * from forum f left join user u on u.id=f.author where hidden=1");
		return forumlist;				
	}

}
